package com.momo.hr.controller.config;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
public class HelloController {


    @RequestMapping("hello")
    public String hello(){
        return "hello";
    }
    //测试权限
    @RequestMapping("/employee/basic/hello")
    public String test1(Date date){
        System.out.println(date);
        return "/employee/basic/";
    }

    @RequestMapping("/employee/advanced/hello")
    public String test2(){
        return "/employee/advanced/hello";
    }
}
